import axios from "~/axios";

export function getAccess() {
  return axios.get("/menu");
}

export function createAccess(data) {
  return axios.post("/menu", data);
}

export function updateAccess(id, data) {
  return axios.put("/menu/" + id, data);
}

export function deleteAccess(id) {
  return axios.delete("/menu/" + id);
}
